<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8" import="com.service.SysManager,com.vo.Site,org.springframework.web.context.support.WebApplicationContextUtils;"%><%@ taglib uri="http://java.sun.com/jstl/core_rt" prefix="c" %>

<script type="text/javascript">
ddsmoothmenu.init({
	mainmenuid: "ddsmoothmenu", //menu DIV id
	orientation: 'h', //Horizontal or vertical menu: Set to "h" or "v"
	classname: 'ddsmoothmenu', //class added to menu's outer DIV
	//customtheme: ["#1c5a80", "#18374a"],
	contentsource: "markup" //"markup" or ["container_id", "path_to_menu_file"]
})
</script>
<%
	if(application.getAttribute("site")==null){
		Site site=(Site)application.getAttribute("site");
		site=Site.getInstance();
		org.springframework.web.context.WebApplicationContext wac = WebApplicationContextUtils.getRequiredWebApplicationContext(this.getServletContext());
		SysManager sys=(SysManager)wac.getBean("sysManager");
		site.setMenu(sys.getMenuDao().getMenuList());
		site.init();
		application.setAttribute("site",site);
	}
 %>
<div class="topTool">
	<a href="Userlogin.jsp">个人会员登陆</a>
	<a href="UserReg.jsp">注册</a>
	<a href="Companylogin.jsp">企业会员登陆</a>
	<a href="CompanyReg.jsp">注册</a>
	<a href="Home.do">会员中心</a>
</div>
<div id="ddsmoothmenu" class="ddsmoothmenu">
${site.menuHtml }
<br style="clear: both" />
</div>
<jsp:include page="advTop.jsp"></jsp:include>
<div style="width: 1000px; background-color: #ffffff">
	<table style="width: 1000px;" cellpadding="0" cellspacing="0">
		<tr>
			<td>
				<img alt="" src="" width="200" height="100" id="logo">
			</td>
			<td><jsp:include page="advTopNav.jsp"></jsp:include></td>
		</tr>
	</table>
</div>

